package com.wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.pojo.ArticleLabel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 吴磊
 * @program: blog
 * @create: 2021-04-19 20:40
 */
@Mapper
public interface ArticleLabelMapper extends BaseMapper<ArticleLabel> {
    /**
     * 插入文章对应的标签
     *
     * @param articleId
     * @param labelId
     * @return
     */
    Integer insert(@Param("articleId") String articleId,
                   @Param("labelId") String labelId);

    /**
     * 删除Label通过文章Id
     *
     * @param articleId
     * @return
     */
    Integer delete(@Param("articleId") String articleId);
}
